/**
 * Copyright @ 2000 ysten Co. Ltd. 
 * All right reserved.     
 * @author: wangmin
 * date: 2016-07-12     
 */
package com.task.bean;

/**
 * 枚举常量
 */
public class EnumConstants {

    /**
     * 主任务类型
     */
    public enum TaskType {
        DATA("数据"),
        INVEST("市调"),
        ARRANG("理货"),
        PROMOTION("促销");
        private String msg;
        private TaskType(String msg) {
            this.msg = msg;
        }
        public String getMsg() {
            return msg;
        }
        public void setMsg(String msg) {
            this.msg = msg;
        }
    }

    /**
     * 主任务状态
     */
    public enum ParentTaskStatus {
        SAVE("已保存"),
        PUBLISH("已发布"),
        DOING("进行中"),
        END("已结束"),
        CLOSE("已关闭");
        private String msg;
        private ParentTaskStatus(String msg) {
            this.msg = msg;
        }
        public String getMsg() {
            return msg;
        }
        public void setMsg(String msg) {
            this.msg = msg;
        }
    }

    /**
     * 子任务状态
     */
    public enum ChildTaskStatus {
        SAVE("已保存"),
        PUBLISH("发布中"),
        DOING("进行中"),
        SUBMIT("已提交"),
        PASS("审核通过"),
        NOPASS("审核未通过"),
        CLOSE("已关闭");
        private String msg;
        private ChildTaskStatus(String msg) {
            this.msg = msg;
        }
        public String getMsg() {
            return msg;
        }
        public void setMsg(String msg) {
            this.msg = msg;
        }
    }
}
